<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title  am-cf">图书分类管理</div>
                </div>
                <div class="widget-body  am-fr">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-6">
                        <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">

                            <input type="text" class="am-form-field" placeholder="书籍分类" ng-model="searchName">
                            <span class="am-input-group-btn">
                                <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="button" ng-click="search()"> 搜索</button>
                            </span>
                        </div>
                    </div>
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-3 tpl-index-settings-button">
                        <div class="am-input-group am-input-group-sm">
                            <button type="button"  class="am-btn am-btn-sm am-btn-primary tpl-btn-bg-color-success " ng-click="openAddModel(1,null)">
                                <i class="am-icon-plus"></i> 新增</button>
                        </div>
                    </div>
                    <div class="am-u-sm-12" style="margin-top:15px;">
                        <div ng-repeat="item in bookClassifyData">
                            <div class="am-u-sm-4 am-u-md-4 am-u-lg-2">
                                <div class="am-cf" style="border:1px solid #eee;padding:2px;margin-bottom:20px;">
                                    <div class="am-fr">
                                        <div class="am-fl">
                                            <span style="font-size: 16px;margin-right: 35px;">{{item.name}}</span>
                                        </div>
                                        <div class="am-fr am-cf">
                                            <div class="" am-cf>
                                                <a href="javascript:;" class="am-icon-pencil" ng-click="openAddModel(2,item)"></a>
                                            </div>
                                            <div class="" am-cf>
                                                <a href="javascript:;" class="am-icon-trash" ng-click="deleteConfirm(item)"></a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 新增弹出框 -->
            <script type="text/ng-template" id="myModalContent.html">

                <div class="modal-header">
                    <h3 class="modal-title">{{titleName}}</h3>
                </div>
                <div class="modal-body">
                    <form class="am-form am-form-horizontal">
                        <div class="am-form-group">
                            <div class="am-u-sm-10">
                                <input type="text" id="doc-ipt-3-1" class="am-form-field" ng-model="bookClassify" placeholder="输入你要新增的书籍分类">
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button class="am-btn am-btn-primary" type="button" ng-click="save()">保存</button>
                    <button class="am-btn am-btn-warning" type="button" ng-click="cancel()">取消</button>
                </div>

            </script>

        </div>
    </div>
</div>